package com.zy.dp.strategy.example5;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public abstract class LogStrategyTemplate implements LogStrategy
{

	@Override
	public void log(String msg)
	{

		DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss SSS");
		msg = df.format(new java.util.Date()) + "内容是" + msg;

		doLog(msg);

	}

	protected abstract void doLog(String msg);

}
